package com.example.educationalsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName : LoginUser  //类名
 * @Description : 登录用户信息实体类  //描述
 * @Author : zpc20 //作者
 * @Date: 2022/12/2  15:07
 */
@Data
public class LoginUser {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID自增")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户名(学生为学号,教师为教师编号,管理员为姓名)")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "密码")
    @TableField("user_password")
    private String userPassword;

    @ApiModelProperty(value = "电话")
    @TableField("user_phone")
    private String userPhone;

    @ApiModelProperty(value = "邮箱")
    @TableField("user_email")
    private String userEmail;

    @ApiModelProperty(value = "用户权限")
    @TableField("user_permissions")
    private Integer userPermissions;

    @ApiModelProperty(value = "用户头像url")
    @TableField("user_avatar_url")
    private String userAvatarUrl;


    @ApiModelProperty(value = "用户身份")
    @TableField("user_identity")
    private String userIdentity;


}
